﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MTQ.Model.Public
{
    public class JsonData
    {
        public int code { get; set; }
        public string msg { get; set; }
    }

    public class JsonData<T>
    {
        public int code { get; set; }
        public string msg { get; set; }
        public T data { get; set; }
    }

    public struct ErrorCode
    {

        /// <summary>
        /// OK
        /// </summary>
        public const int OK = 0;

        /// <summary>
        /// 未授权
        /// </summary>
        public const int UnAuthorized = 401;

        /// <summary>
        /// 一般错误
        /// </summary>
        public const int Error = 500;

        /// <summary>
        /// 系统错误
        /// </summary>
        public const int sysError = 501;


    }
}